<!-- BEGIN LOGIN FORM -->
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'login-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
	'htmlOptions'=>array(
		'class'=>'login-form'
	),
)); ?>
        <h3 class="form-title">Login</h3>
        <div class="alert alert-error">
            <span><?php echo $form->error($model, 'username'); ?></span>
            <span><?php echo $form->error($model, 'password'); ?></span>
        </div>
        <div class="form-group">
            <!--ie8, ie9 does not support html5 placeholder, so we just show field title for that-->
            <?php echo $form->labelEx($model, 'username', array('class'=>'control-label visible-ie8 visible-ie9')); ?>
            <div class="input-icon">
                <i class="icon-user"></i>
                <?php echo $form->textField($model, 'username', array('class'=>'form-control placeholder-no-fix', 'autocomplete'=>'off', 'placeholder'=>'Username')); ?>
            </div>
        </div>
        <div class="form-group">
        	<?php echo $form->labelEx($model, 'password', array('class'=>'control-label visible-ie8 visible-ie9')); ?>
            <div class="input-icon">
                <i class="icon-lock"></i>
                <?php echo $form->passwordField($model, 'password', array('class'=>'form-control placeholder-no-fix', 'autocomplete'=>'off', 'placeholder'=>'Password')); ?>
            </div>
        </div>
        <div class="form-actions">
            <label class="checkbox">
            <?php echo $form->checkBox($model,'rememberMe'); ?> Remember?
            </label>
            <button type="submit" class="btn green pull-right">
            Login <i class="m-icon-swapright m-icon-white"></i>
            </button>
        </div>
<?php $this->endWidget(); ?>
<!-- END LOGIN FORM -->